require.config({
	//	urlArgs:'test=true&t='+(new Date()).getTime(),
	baseUrl: './module',
	paths: {
		'jquery': '../../../js/lib/jquery-v3.0.0/jquery',
		'cookie': '../../../js/lib/jquery-plugins/jquery.cookie',
		'jquerySets': 'jquery-sets'//把所有jquery插件都在jquery-set.js文件中进行调用，这样只需要在入口处调用jquerySets就可以加载所有jquery插件
	},
	map: {
		'old': {
			'groot': 'groot-old'
		},
		'new': {
			'groot': 'groot-new'
		},
		//		'*':{
		//			
		//		}
	},
	packages: [{
			name: 'dog',
			location: 'package-dog',
			main: 'dog'
		},
		{
			name: 'cat',
			location: 'package-cat',
			main: 'cat'
		}
	],
	//通过module.config()获取，define(function (require, exports, module)
	//or define(['module'], function (module)
	config: {
		'app': {
			desc: 'app edit by dhclly'
		},
		'greet': {
			desc: 'greet edit by dhclly'
		}
	},
	shim: {
		'cookie': {
			deps: ['jquery'],
			exports: 'jQuery',
			init: function($, depsList) {
				return jQuery;
			}
		}
		//		,
		//		'cookie':['jquery']//添加依赖
	}
});

console.log('is browser', require.isBrowser);

require(['app', 'jquerySets', 'new/new-call', 'old/old-call', 'dog', 'cat'],
	function(app, jquerySets, n, o, dog, cat) {
		debugger;
		console.log('------------');
		console.log('|当前模块main');
		console.log('依赖模块app');
		console.log('依赖模块完整路径', require.toUrl('app'));
		app.run();
	})